/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-04-13
 * Time: 9:49
 */
public class Student extends Role{
    private String number;
    private String classnumber;

    public Student(){}
    public Student(String name, int age, String number, String classnumber){
        super(name, age);
        this.number = number;
        this.classnumber = classnumber;
    }

    public void show(){
        System.out.println("我是"+name+"，年龄"+age+"岁。学号是"+number+"，"
                +"来自"+classnumber+"班。");
    }
}
